package DataStructure.linear;

public class QueueTest2 {
    public static void main(String[] args) {
        Queue2<String> qe=new Queue2();

        qe.enqueue("我爱你df");
        qe.enqueue("柳df淇");
        qe.enqueue("琪df琪");
        qe.enqueue("日df你妈");


        /*while (qe.hasNext()){
            String next = qe.next();
            System.out.println(next);
        }*/

        for (Queue2<String> it = qe; it.hasNext(); ) {
            String s = it.next();
            System.out.println(s);

        }



    }
}
